import request from '@/utils/request'

export function listComplaintDiagnosis(query) {
  return request({
    url: '/complaint/diagnosis/list',
    method: 'get',
    params: query
  })
}

export function createComplaintDiagnosis(data) {
  return request({
    url: '/complaint/diagnosis/create',
    method: 'post',
    data
  })
}

export function readComplaintDiagnosis(query) {
  return request({
    url: '/complaint/diagnosis/read',
    method: 'get',
    params: query
  })
}

export function updateComplaintDiagnosis(data) {
  return request({
    url: '/complaint/diagnosis/update',
    method: 'post',
    data
  })
}

export function deleteComplaintDiagnosis(data) {
  return request({
    url: '/complaint/diagnosis/delete',
    method: 'post',
    data
  })
}
